Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt validation to sonata examples #81

Merged
merged 6 commits into from
Jul 21, 2020

Conversation

asanin-epfl
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jul 21, 2020

Codecov Report

Merging #81 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #81   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         1329      1342   +13     
=========================================
+ Hits          1329      1342   +13     
Impacted Files Coverage Δ
bluepysnap/circuit_validation.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e029b6f...d703211. Read the comment docs.

@asanin-epfl asanin-epfl force-pushed the adapt-validation-to-sonata-examples branch from d2c389e to d703211 Compare July 21, 2020 09:08
@asanin-epfl asanin-epfl requested a review from tomdele July 21, 2020 09:34
"""Transforms hdf5 population group to pandas DataFrame.

Args:
group: HDF5 group of edges or nodes population
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure we cannot do that for edges.
With a "normal" edge file (few hundred of millions of edges to multiple billions of edges), the data cannot fit in memory.
Did you try with a big circuit ?

Maybe we should keep that for nodes only at the moment ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok I saw that you are using it only for the nodes.
Is it something you plan on using on edges too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought to use it for edges but now I'm thinking. It will definitely fail on few hundred of millions of edges. I will reimplement it only for nodes.

Comment on lines +239 to +241
types = pd.read_csv(types_file, sep=r'\s+')
types.rename(columns={types.columns[0]: 'type_id'}, inplace=True)
return pd.merge(df, types, on='type_id', how='left')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that s cool it makes a first impl of the csv !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we can validate Allen circuits as they heavily rely on this .csv.

@tomdele
Copy link
Contributor

tomdele commented Jul 21, 2020

That s really cool. Thanks for making this.

Do we validate the AIBS circuit with these changes ?

@asanin-epfl
Copy link
Contributor Author

Yes. I did. Here is the log:

FATAL: Group external/0 of /Users/sanin/workspace/sonata/examples/300_cells/network/external_nodes.h5 misses required fields: ['model_template']

@tomdele
Copy link
Contributor

tomdele commented Jul 21, 2020

So it spots errors that s great !

@asanin-epfl
Copy link
Contributor Author

asanin-epfl commented Jul 21, 2020

Thanks for the review!

@asanin-epfl asanin-epfl merged commit 639ac58 into master Jul 21, 2020
@asanin-epfl asanin-epfl deleted the adapt-validation-to-sonata-examples branch July 22, 2020 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants